﻿using System;
using Artech.PetShop.Common;
using Artech.PetShop.Orders.BusinessComponent;
using Artech.PetShop.Orders.BusinessEntity;
using Artech.PetShop.Products.Service.Interface;
using Microsoft.Practices.Unity;
namespace Artech.PetShop.Products.Service
{
    public class ProductService : ServiceBase, IProductService
    {
        [Dependency]
        public ProductBC BusinessComponent
        { get; set; }

        #region IProductService Members

        public Product[] GetAllProducts()
        {
           return this.BusinessComponent.GetAllProducts();
        }

        public Product GetProductByID(Guid productID)
        {
            return this.BusinessComponent.GetProductByID(productID);
        }

        public int GetInventory(Guid productID)
        {
            return this.BusinessComponent.GetInventory(productID);
        }

        #endregion
    }
}
